Show AllShow All

LineStyle Property

Returns or sets the line style for the border. Read/write XlLineStyle.

expression.LineStyle

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

This example puts a border around the chart area and the plot area.

With myChart
    .ChartArea.Border.LineStyle = xlDashDot
    With .PlotArea.Border
        .LineStyle = xlDashDotDot
        .Weight = xlThick
    End With
End With